Skip to content

Conversation

@kialj876
Copy link
Collaborator

Issue #: /bcgov/entity#31316

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@vysakh-menon-aot
Copy link
Collaborator

Can you update requires-python to make the CI work #4020 (review)

Copy link
Collaborator

@doug-lovett doug-lovett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, and I know it works. Just the one comment on using filings.id or filings.transaction_id to identify the filing.

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@kialj876
Copy link
Collaborator Author

kialj876 commented Jan 28, 2026

Can you update requires-python to make the CI work #4020 (review)

I added pytest-cov too for the new CI changes. The test failures are happening off of main and are intermittent across several tests. Have you run into this before? It looks like there might be a runtime issue with the cascade deletions in the tests (seems to only come up in cases where addresses are being removed)

@vysakh-menon-aot
Copy link
Collaborator

I added pytest-cov too for the new CI changes. The test failures are happening off of main and are intermittent across several tests. Have you run into this before? It looks like there might be a runtime issue with the cascade deletions in the tests (seems to only come up in cases where addresses are being removed)

don't think i come across this issue

"gunicorn (>=23.0.0,<24.0.0)",
"business-registry-account @ git+https://github.com/bcgov/lear.git@main#subdirectory=python/common/business-registry-account"
"business-registry-account @ git+https://github.com/bcgov/lear.git@main#subdirectory=python/common/business-registry-account",
"pytest-cov (>=7.0.0,<8.0.0)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move this to dev dependencies

# FUTURE: DRS integration with document id No newline at end of file
try:
# Create DRS record
PublishEvent.publish_drs_create_message(current_app, business, filing_rec)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its better to move this after commit, that's what we follow in filer for other messages https://github.com/bcgov/lear/blob/main/queue_services/business-filer/src/business_filer/services/filer.py#L277

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that makes sense - will do

@kialj876
Copy link
Collaborator Author

kialj876 commented Jan 28, 2026

I added pytest-cov too for the new CI changes. The test failures are happening off of main and are intermittent across several tests. Have you run into this before? It looks like there might be a runtime issue with the cascade deletions in the tests (seems to only come up in cases where addresses are being removed)

don't think i come across this issue

this PR to the model fixes the issue (tested locally), but I'm not really sure why this started happening #4037

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants